package cn.com.qtgl.apis.notification.model.view;

import cn.melonlib.cores.commons.model.entity.StringIdEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("消息提醒查询结果")
public class NotificationResult extends StringIdEntity {
    @ModelComment(value = "消息标题",required = true)
    private String name;

    @ModelComment("消息正文，纯文本格式")
    private String content;

    @ModelComment("消息正文，富文本格式")
    private String body;

    @ModelComment("消息正文,html格式")
    private String html;

    @ModelComment("消息摘要")
    private String contentAbstract;

    @ModelComment(value = "通知推送渠道，渠道为email、sms等等",required = true)
    private List<String> channels;

    @ModelComment("外部推送邮件")
    private List<String> emails;

    @ModelComment("外部(电话/手机)号码")
    private List<String> phones;

    @ModelComment("收信人列表")
    private UserView user;

    @ModelComment("收信对象userFilters")
    private List<String> userFilters;

    @ModelComment("发送状态(0:未发送 1:发送成功 2:发送失败)")
    private Integer state;


    @ModelComment("已读/未读")
    private String status ;

    @ModelComment("完成时间")
    private Long  finishTime;

    @ModelComment("标签，用','分割")
    private String tags;
}
